﻿@model BBViewModel
@{
    ViewData["Menu"] = 1;
    ViewData["Title"] = "全部信息";
}

<main class="ftdms-layout-content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>分类</th>
                                        <th width="70%">标题</th>
                                        <th>发布者</th>
                                        <th>发布时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @if (Model.BBList.Any())
                                    {
                                        foreach (var item in Model.BBList)
                                        {
                                            <tr>
                                                <td>@(item.id)</td>
                                                <td>@(item.flmc)</td>
                                                <td><a href="@Url.Action("Show","BB", new { id = item.id })"> @*hynosql*@ @(item.fbbt)</a></td>
                                                <td>@(item.username)</td>
                                                <td>@(item.fbsj)</td>
                                            </tr>
                                        }
                                    }
                                </tbody>
                            </table>
                        </div>
                        <!-- 分页条码 -->
                        <pagination total-count="Model.BBCount"></pagination>
                        <!--End 分页条码 -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>